package com.sa.controller;

import cn.dev33.satoken.annotation.SaCheckPermission;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author wangxiaohui
 * @date 2023/6/9 17:07
 */

@RestController
@RequestMapping("/user")
public class UserController {



    @SaCheckPermission("user:add")
    @RequestMapping("/add")
    public String addUser() {
        return "添加用户成功";
    }

    @SaCheckPermission("user:update")
    @RequestMapping("/update")
    public String updateUser() {
        return "更新用户成功";
    }
    @SaCheckPermission("user:del")
    @RequestMapping("/del")
    public String del() {
        return "删除用户成功";
    }
}
